package test;

import dao.IStudentImpl;
import idao.IStudentDao;
import org.junit.Test;
import pojo.TbStudent;

public class Mytest {
    @Test
    public void studenttest() throws Exception{

        TbStudent stu = new TbStudent();
        IStudentDao iStudentDao = new IStudentDao();
        //stu.setId(10);
        stu.setName("英俊");
        stu.setAge(272);
        stu.setGender("男");
        stu.setTel("45632");
        //System.out.println(iStudentDao.insert(tbStudent));
        //System.out.println(iStudentDao.delete(11));
        //System.out.println(iStudentDao.update(stu));
        System.out.println(iStudentDao.getStudentById(3));

    }
}
